<?php



class AccountOwnerMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.AccountOwnerMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(AccountOwnerPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(AccountOwnerPeer::TABLE_NAME);
		$tMap->setPhpName('AccountOwner');
		$tMap->setClassname('AccountOwner');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('CONTACT_IDEN', 'ContactIden', 'VARCHAR' , 'contact', 'IDEN', true, 20);

		$tMap->addColumn('SSS_NUMBER', 'SssNumber', 'VARCHAR', true, 30);

		$tMap->addColumn('HEALTH_CARD_NUMBER', 'HealthCardNumber', 'VARCHAR', true, 30);

		$tMap->addColumn('TIN_NUMBER', 'TinNumber', 'VARCHAR', true, 30);

		$tMap->addColumn('HOME_DEVELOPMENT_FUND_NUMBER', 'HomeDevelopmentFundNumber', 'VARCHAR', true, 30);

		$tMap->addColumn('VAT_EXCEMPT_TYPE', 'VatExcemptType', 'VARCHAR', true, 20);

		$tMap->addColumn('TAX_CODES', 'TaxCodes', 'LONGVARCHAR', true, null);

	} 
} 